var timer;

(Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.default = void 0, "function" != typeof Object.assign && (Object.assign = function(t) {
    if (null == t) throw new TypeError("Cannot convert undefined or null to object");
    t = Object(t);
    for (var e = 1; e < arguments.length; e++) {
        var r = arguments[e];
        if (null != r) for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (t[n] = r[n]);
    }
    return t;
}), String.prototype.padEnd || (String.prototype.padEnd = function(t, e) {
    return t >>= 0, e = String(void 0 !== e ? e : " "), this.length > t ? String(this) : ((t -= this.length) > e.length && (e += e.repeat(t / e.length)), 
    String(this) + e.slice(0, t));
}), String.prototype.padStart || (String.prototype.padStart = function(t, e) {
    return t >>= 0, e = String(void 0 !== e ? e : " "), this.length > t ? String(this) : ((t -= this.length) > e.length && (e += e.repeat(t / e.length)), 
    e.slice(0, t) + String(this));
}), Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", {
    value: function(t, e) {
        if (null == this) throw new TypeError('"this" is null or not defined');
        var r = Object(this), n = r.length >>> 0;
        if (0 === n) return !1;
        for (var i = 0 | e, o = Math.max(0 <= i ? i : n - Math.abs(i), 0); o < n; ) {
            if (r[o] === t) return !0;
            o++;
        }
        return !1;
    }
}), wx.showLoading) || (wx.showLoading = function() {
    var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {};
    t.icon = "loading", t.duration = 1e4, clearInterval(timer), wx.hideToast(), wx.showToast(t), 
    timer = setInterval(function() {
        wx.hideToast(), wx.showToast(t);
    }, 8e3);
}, wx.hideLoading = function() {
    wx.hideToast(), clearInterval(timer);
});

var _default = wx;

exports.default = _default;